package Ar;

import java.util.Arrays;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class bubbleSortReveser {
    public static void main(String[] args) {
        int[] ar = {7,9,6,5,1};
        int i = 0;
        int j = ar.length-1;
        int temp = 0;
        while (i<j){
            temp = ar[i];
            ar[i] = ar[j];
            ar[j] = temp;
            i++;
            j--;
        }
        System.out.println(Arrays.toString(ar));
    }
}
